﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArithemeticSolver
{
	internal enum ElementType
	{
		Operator,
		Operand,
		LeftParenthesis,
		RightParenthesis
	}

	internal static class ElementTypeHelper
	{
		public static ElementType ToElementType(string input)
		{
			if (input == "+" ||
				input == "-" ||
				input == "*" ||
				input == "/") return ElementType.Operator;

			if (input == "(") return ElementType.LeftParenthesis;
			if (input == ")") return ElementType.RightParenthesis;

			return ElementType.Operand;
		}
	}
}